Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/lodash.clonedeep

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/lodash.clonedeep

TypeScript definitions for lodash.clonedeep

  • 4.5.9
  • ts4.5
  • ts4.6
  • ts4.7
  • ts4.8
  • ts4.9
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
323K
decreased by-43.44%
Maintainers
1
Weekly downloads
 
Created

What is @types/lodash.clonedeep?

@types/lodash.clonedeep is a TypeScript type definition package for the lodash.clonedeep function. This package provides type definitions to ensure type safety and better development experience when using the lodash.clonedeep function in TypeScript projects.

What are @types/lodash.clonedeep's main functionalities?

Deep Cloning of Objects

This feature allows you to create a deep clone of an object, meaning all nested objects are also cloned, not just the top-level properties.

const _ = require('lodash.clonedeep');
const original = { a: 1, b: { c: 2 } };
const clone = _.cloneDeep(original);
console.log(clone); // { a: 1, b: { c: 2 } }

Deep Cloning of Arrays

This feature allows you to create a deep clone of an array, ensuring that nested arrays are also cloned.

const _ = require('lodash.clonedeep');
const original = [1, [2, 3], 4];
const clone = _.cloneDeep(original);
console.log(clone); // [1, [2, 3], 4]

Deep Cloning of Complex Structures

This feature allows you to create a deep clone of complex structures that include objects, arrays, and other types like Date.

const _ = require('lodash.clonedeep');
const original = { a: [1, { b: 2 }], c: new Date() };
const clone = _.cloneDeep(original);
console.log(clone); // { a: [1, { b: 2 }], c: Date }

Other packages similar to @types/lodash.clonedeep

FAQs

Package last updated on 07 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc